package com.gf.forcesystem.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author gaofei
 * @date 2022/6/20 21:32
 * 单位基本信息
 */
@Data
public abstract class BaseUnit implements IMessage{
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("位置")
    private Position position;
    @ApiModelProperty("状态")
    private String state;

    public String toJson() {
        return new BaseMessage().toJson(this);
    }
}
